package com.bt7274.service;

import com.bt7274.pojo.Torrent;
import com.bt7274.pojo.TransferHistory;
import com.bt7274.pojo.User;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface TransferHistoryService {

    public TransferHistory getTransferHistory(@NotNull String userId, @NotNull Torrent torrent);

    public List<TransferHistory> getTransferHistory(@NotNull String userId);

    public List<TransferHistory> getTransferHistory(@NotNull Torrent torrent);

    public TransferHistory createOrUpdate(@NotNull TransferHistory transferHistory);

    public PeerStatus getPeerStatus(@NotNull Torrent torrent);

    public record PeerStatus(int complete, int incomplete, int downloaded, int downloaders) {

    }
}
